from django.urls import path
from rest_framework import routers
from news import views
urlpatterns = [
    path('xiang/',views.NewXiang.as_view()),
    path('pinglun/',views.PingLun.as_view()),
    path('tianjia/',views.TianJia.as_view()),
    path('deng/',views.Denglu.as_view()),
]


router = routers.DefaultRouter()
router.register('newlist',views.Xinlist)


urlpatterns += router.urls
